<template>
  <div id="app">
    <router-link to="/">进入home页面</router-link>
    <router-link to="/about">进入about页面</router-link>
    <transition name="slide" appear>
      <router-view class="page"/>
    </transition>
    
  </div>
</template>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.slide-enter-active, .slide-leave-active {
  transition: transform .5s;
}
.slide-enter {
  transform: translate(100%);
}
.slide-leave-to {
  transform: translate(-100%);
}
</style>
